<%@attribute name="pacientes" type="java.util.Vector" required="true" rtexprvalue="true" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib tagdir="/WEB-INF/tags" prefix="wn" %>
<table width="300" border="1">
  <tr>
    <td>Paciente</td>
    <td>Nome da Mae</td>
    <td>RG</td>
    <td>Acao</td>
  </tr>
  
  <c:forEach items="${pacientes}" var="p">
  <tr>
    <td>${p.nome}</td>
    <td>
    	${p.mae }
    </td>
    <td>
    	${p.rg }
    </td>
  	<td>
  	<a id="editar" href="AgendaServlet?acao=FormConsulta&idpaciente=${p.id}">Selecionar</a>
  	</td>
  </tr>
  
  </c:forEach>
</table>